import { createApp } from 'vue'
import App from './App.vue'

// element-plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
// 全局样式
import './style.css'
//tailwindcss
import './tailwind.css'
// 路由
import router from '@/router'
//引入pinia
import pinia from './stores'
const app = createApp(App)
// 注册element-plus的icon
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.use(pinia)
app.use(ElementPlus)
app.use(router) 

app.mount('#app')